package com.daodway.designpattern.mediatorpattern.wide;
/**
 * 部门类
 */
public class Dep {
		    private String depId;
		    private String depName;
		
		    /**
		     * 撤销部门
		     * @return
		     */
		    public boolean deleteDep(){
		              DepUserMediatorImpl  mediator = DepUserMediatorImpl.getInstance();
		              mediator.deleteDep(depId);
		              return true;
		    }
		
			public String getDepId() {
				return depId;
			}
		
			public void setDepId(String depId) {
				this.depId = depId;
			}
		
			public String getDepName() {
				return depName;
			}
		
			public void setDepName(String depName) {
				this.depName = depName;
			}
    
    
}
